/*
 * Copyright (c)2009 Shanghai Tudou Co. Ltd.
 * All rights reserved.
 */
package com.zhisheng.gufei.produce.service.impl;

import java.util.List;

import org.springframework.stereotype.Service;

import com.zhisheng.core.service.impl.BaseServiceImpl;
import com.zhisheng.gufei.produce.dao.BaseInformationDao;
import com.zhisheng.gufei.produce.entity.BaseInformation;
import com.zhisheng.gufei.produce.service.BaseInformationService;

/**
 * @author xgye
 * @date 2009-9-11
 * @version $Id$
 */
@Service("baseInfoService")
public class BaseInformationServiceImpl extends BaseServiceImpl<BaseInformation, Integer, BaseInformationDao>implements BaseInformationService {

    
    public List<BaseInformation> getAllBaseInfo() {
        return entityDao.getAllBaseInformation();
    }

    public List<BaseInformation> getBaseInfoByCorpId(Integer id) {
        return entityDao.getBaseInfoByCorpId(id);
    }

    public void setBaseInfoDao(BaseInformationDao baseInfoDao) {
        this.entityDao = baseInfoDao;
    }

    public void saveBaseInfo(BaseInformation info) {
        this.entityDao.save(info);
    }

}
